package oop5;

import oop4.Pet;

/**
 * @author oldliu
 * @since 1.0
 */
public class RenTest {
    public static void main(String[] args) {
        Ren r=new Ren("老吴",21,"男");
        System.out.println(r);
        String str="这个人:"+r;
        System.out.println(str);
        Ren r2=new Ren("老吴",43,"女");
        System.out.println(r==r2);//false
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>");
        boolean eq=r.equals(r2);
        System.out.println("逻辑上相等？"+eq);

        Pet h=new Dolphin("小翠",88,77,"母");
        System.out.println(">????????>>>>>>>>>>>>>>>>>");
        boolean f2=r.equals(h);
        System.out.println(f2);
    }
}
